package com.cn.designpatterns.ex.again.ex.prototype;

/**
 * @author: zhangyi
 * @date: 2019/1/9 09:46
 * @description:
 */
public class Resume implements Cloneable{

    private String name;

    private String graduation;

    private String sex;

    private Prototype prototype;

//    ...


    public Resume(String name, String graduation, String sex,Prototype prototype) {
        this.name = name;
        this.graduation = graduation;
        this.sex = sex;
        this.prototype = prototype;
    }

    public Prototype getPrototype() {
        return prototype;
    }

    public void setPrototype(Prototype prototype) {
        this.prototype = prototype;
    }

    public Resume() {
    }

    public String getGraduation() {
        return graduation;
    }

    public void setGraduation(String graduation) {
        this.graduation = graduation;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return name+" "+graduation+" "+sex+" "+prototype;
    }
}
